(function () {
    // 保存原始方法
    window.__cr_eval = window.eval;
    // 重写eval
    var MyEval = function (src) {
        console.log(src);
        console.log("================== eval ================");
        debugger;
        return window.__cr_eval(src);
    }
    // 屏蔽 JS 中对原生函数 native 熟悉检测
    var _myEval = MyEval.bind(null);
    _myEval.toString = window.__cr_eval.toString();
    Object.defineProperty(window, 'eval', {
        value: _myEval
    });
})();